export function base64ToBlobUrl(
  base64String: string,
  mimeType: string = 'application/octet-stream'
) {
  // 将 Base64 字符串解码为二进制数据
  const binaryData = Uint8Array.from(atob(base64String), (c) => c.charCodeAt(0))

  // 创建 Blob 对象
  const blob = new Blob([binaryData], {
    type: mimeType
  })

  // 通过 URL.createObjectURL 创建 Blob 的 URL
  const blobUrl = URL.createObjectURL(blob)

  return blobUrl
}
